import HelloWorld from '@/components/HelloWorld'
import GoodDetail from '@/components/GoodDetail'

const components = [
    HelloWorld,
    GoodDetail
]

const diyComponent = {
    install(Vue) {
        components.forEach(component => {
            Vue.component(component.name, component);
        });
    }
}

export default diyComponent